package com.tpshion.cloud.common.support;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 刷新token过期时间
 */
@Valid
public class RefreshDto {

    @NotEmpty(message = "用户id不能为空")
    @Size(max = 64, message = "用户id长度不能超过64位")
    private String userId;

    @NotEmpty(message = "token不能为空")
    private String token;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "RefreshDto{" +
                "userId='" + userId + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
